SRC = pam_quiz.c
OBJ = pam_quiz.o
OUT = pam_quiz.so
CCFLAGS = -fPIC -g -c -Wall
DSOFLAGS = --shared --export-dynamic -Wl,-soname,
GCC = gcc

pam_quiz.o: $(SRC)
	$(GCC) $(CCFLAGS) $?

pam_quiz.so: pam_quiz.o
	$(GCC) $(DSOFLAGS)pam_quiz -o pam_quiz.so $? -lpam

install: pam_quiz.so
	
clean:
	rm -rf $(OUT)